package com.ledou44.blokus.vo;

/**
 * @author ledou44
 * 前后端消息通信模型
 */
public class Message {

    /**
     * 落子的行数
     */
    private Integer row;

    /**
     * 落子的列数
     */
    private Integer line;

    /**
     * 落子的id
     */
    private String chess;

    /**
     * 游戏唯一标识符
     */
    private String gameKey;

    /**
     * 当前游戏状态
     * running 正在进行
     * winning 产生获胜者
     */
    private String gameState;

    /**
     * 棋子颜色
     */
    private String chessColor;

    /**
     * 棋子是否上下翻转过
     */
    private Boolean isUprightChange;

    /**
     * 棋子是否水平翻转过
     */
    private Boolean isLevelChange;

    /**
     * 棋子旋转的角度
     */
    private Integer nowChessShape;

    /**
     * 错误信息
     */
    private String errorMessage;

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public Boolean getUprightChange() {
        return isUprightChange;
    }

    public void setUprightChange(Boolean uprightChange) {
        isUprightChange = uprightChange;
    }

    public Boolean getLevelChange() {
        return isLevelChange;
    }

    public void setLevelChange(Boolean levelChange) {
        isLevelChange = levelChange;
    }

    public Integer getNowChessShape() {
        return nowChessShape;
    }

    public void setNowChessShape(Integer nowChessShape) {
        this.nowChessShape = nowChessShape;
    }

    public Integer getRow() {
        return row;
    }

    public void setRow(Integer row) {
        this.row = row;
    }

    public Integer getLine() {
        return line;
    }

    public void setLine(Integer line) {
        this.line = line;
    }

    public String getChess() {
        return chess;
    }

    public void setChess(String chess) {
        this.chess = chess;
    }

    public String getGameKey() {
        return gameKey;
    }

    public void setGameKey(String gameKey) {
        this.gameKey = gameKey;
    }

    public String getGameState() {
        return gameState;
    }

    public void setGameState(String gameState) {
        this.gameState = gameState;
    }

    public String getChessColor() {
        return chessColor;
    }

    public void setChessColor(String chessColor) {
        this.chessColor = chessColor;
    }
}
